home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / space_escape.swf / scripts / DefineSprite_234_game_world_powerUps_U#mSpeed / frame_1 / DoAction.as
Text File  |  2007-01-15  |  405b  |  12 lines

  1. this.onEnterFrame = function()
  2. {
  3.    var _loc1_ = this;
  4.    var _loc2_ = _root;
  5.    if(_loc2_.game.ship.hitTest(_loc1_._x + _parent._parent._x,_loc1_._y + _parent._parent._y,true) && _loc2_.game.ship.active == true)
  6.    {
  7.       _loc2_.game.ship.speed = _loc2_.limitsArray[1][1];
  8.       _loc2_.game.world.powerUpsTextMessage(_loc1_._x,_loc1_._y,"Magic Speed");
  9.       removeMovieClip(_loc1_);
  10.    }
  11. };
  12.